package com.zhl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2019/1/28.
 */
@Controller
@RequestMapping("/zhl")
public class pageController {

    //这样使用有风险,可能会造成无限循环
    //或者匹配到访问静态文件
    /*@RequestMapping("/{page}")
    public String page(@PathVariable("page")String page) {
        return page;
    }*/

    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    @RequestMapping("/user")
    public String user() {
        return "user";
    }

    @RequestMapping("/music")
    public String music() {
        return "music";
    }

    @RequestMapping("/article")
    public String article() {
        return "article";
    }




}
